<template>
  <div class="article">
    <div class="article-top">
      <div class="article-header"></div>
      <div class="article-right">
        <div class="article-name">一碗甜粥不加糖</div>
        <div class="article-date">02.14 23:13</div>
      </div>
    </div>
    <div class="article-title">一念之间，天堂地狱</div>
    <div class="article-content">
      是一部带有警世钟意味的影片，片中的达达拉城影射了无孔不入的工业文明，而魔法森林无疑就是
      生态环境的象征了，森林的掌管者山兽神代表万能的“造物主”，也就是自然的法则
    </div>
    <div class="article-pic">
      <div class="single-pic" v-for="item in list" :key="item.index"></div>
    </div>
    <div class="article-btn">
      <div class="btn-single">
        <div class="btn-icon">
          <img src="../assets/imgs/dz.png" />
        </div>
        <div class="btn-number">1213</div>
      </div>
      <div class="btn-single">
        <div class="btn-icon">
          <img src="../assets/imgs/hf.png" />
        </div>
        <div class="btn-number">1213</div>
      </div>
      <div class="btn-single">
        <div class="btn-icon">
          <img src="../assets/imgs/zf.png" />
        </div>
        <div class="btn-number">1213</div>
      </div>
       <div class="btn-single">
        <div class="btn-icon">
          <img src="../assets/imgs/fx.png" />
        </div>
        <div class="btn-number fx">分享到</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "articleCtn",
  data() {
    return {
      list:[{},{},{},{},{},{},{}]
    };
  },
  mounted() {
    this.getRem(1920, 100);
  },
};
</script>

<style scoped>
.article {
  width: 11.02rem;
  height: auto;
  background: rgba(255, 255, 255, 1);
  opacity: 1;
  border-radius: 0.05rem;
  box-sizing: border-box;
  padding-top: 0.2rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  border: 1px solid black;
  margin-bottom: 0.04rem;
}
.article .article-top {
  width: 100%;
  height: 0.5rem;
  display: flex;
  align-items: center;

  border: 1px solid red;
}
.article .article-top .article-header {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid red;
}
.article .article-top .article-right {
  width: 1.12rem;
  height: 0.43rem;
  border: 1px solid red;
  position: relative;
  margin-left: 0.12rem;
}
.article-right .article-name {
  font-size: 0.16rem;
  font-family: PingFang SC;
  font-weight: 400;
  margin-top: 0.06rem;
  color: rgba(9, 9, 9, 1);
  opacity: 1;
}
.article .article-top .article-right .article-date {
  position: absolute;
  bottom: 0rem;
  font-size: 0.12rem;
  font-family: PingFang SC;
  font-weight: 400;
  color: rgba(112, 112, 112, 1);
  opacity: 1;
}
.article .article-title {
  width: 1.26rem;
  font-size: 0.14rem;
  height: 0.2rem;
  font-family: PingFang SC;
  font-weight: 400;
  color: rgba(9, 9, 9, 1);
  border: 1px solid red;
  opacity: 1;
  margin: 0.12rem 0rem;
}
.article .article-content {
  width: 6.02rem;
  height: 0.4rem;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 2;
  font-size: 0.14rem;
  font-family: PingFang SC;
  font-weight: 400;
  color: rgba(48, 48, 48, 1);
  margin-bottom: 0.12rem;
  opacity: 1;
}
.article .article-pic {
  width: 4rem ;
  height: 3.48rem;
  border: 1px solid red;
  display: flex;
  flex-wrap: wrap;
  font-size: 0;
  overflow: hidden;

}
.article .article-pic .single-pic{
  width: 1.12rem;
  height: 1.12rem;
  display: inline-block;
  border: 1px solid red;
  margin-right:0.06rem ;
  margin-bottom: 0.06rem;
}
.article .article-btn {
  width: 100%;
  height: 0.52rem;
  border: 1px solid red;
  display: flex;
  align-items: center;
}
.btn-single {
  height: 100%;
  width: 0.58rem;
  display: flex;
  align-items: center;
  margin-right: 0.4rem;
}
.btn-single .btn-icon {
  width: 0.16rem;
  height: 0.16rem;
}
.btn-single .btn-number {
  width: 0.34rem;
  font-size: 0.14rem;
  font-family: PingFang SC;
  font-weight: 400;
  color: rgba(153, 153, 153, 1);
  opacity: 1;
  margin-left: 0.08rem;
}
image {
  width: 100%;
  height: 100%;
}
.fx{
  min-width:0.42rem !important ;
}
</style>
